public class t {
    public static void main(String[] args) {
        Test t1=new Test();
        t1.setName("第一个");
        t1.start();
        Test t2=new Test();
        t2.setName("第2个");
        t2.start();

    }
    static class Test extends Thread{
        public void run(){
            for (int i = 0; i < 100; i++) {
                System.out.println("你好啊"+this.getName());
            }
        }
    }
}
